package com.xunwulian.api.iface;

import com.xunwulian.api.dto.BaseResponse;
import com.xunwulian.base.entity.SubscriberEntity;
import org.apache.ibatis.annotations.Param;

public interface SubscriberAPI {

    void add(SubscriberEntity subscriberEntity);

    BaseResponse<SubscriberEntity> findByOpenId(@Param("openId") String openId);

    void bind(@Param("userId") String userId, @Param("openId") String openId);

    void unbind(@Param("openId") String openId);
}
